package game.model.globalVar
{
	import game.model.items.vo.ItemVO;
	import org.puremvc.as3.interfaces.IProxy;
	import org.puremvc.as3.patterns.proxy.Proxy;

	/**
	 * ...
	 * @author Thot
	 */
	
	public class GlobalVarProxy extends Proxy implements IProxy
	{
		
		static public var NAME:String = 'GlobalVarProxy';
		
		public function GlobalVarProxy()
		{ 
			super( NAME, new Object() );
			init();
		}
		
		protected function init():void{}
		
		public function setGlobalVar( p_varName:String, p_value:* ):void
		{
			data[p_varName] = p_value;
		}
		
		public function getGlobalVarValueByName( p_varName:String ):*
		{
			if ( data[p_varName] )
			{
				return data[p_varName];
			}
			else
			{
				return null;
			}
		}
		
		
		
	}

}